import {ajaxPost} from "@/utils/request.js"

// 发送验证码
export const sendCode = ({email})=>{
	let url = "sendCode"
	let data = {
		email
	}
	return ajaxPost(url,data)
}

// 注册
export const register = ({name,pwd,email,phone,code,sex,birth})=>{
	let url = "register"
	let data = {
		name,
		pwd,
		email,
		phone,
		code,
		sex,
		birth
	}
	return ajaxPost(url,data)
}